let test=666;
;(function(window,undefined){
    function init(el){
        let els=document.querySelectorAll(el)
        for(let i=0;i<els.length;i++){
            this[i]=els[i]
        }
        this.length=els.length
    }
    let jQuery=function(el){
        return  new init(el)
    }
    jQuery.extend=function(object){
        for(let key in object){
            init.prototype[key]=object[key]
        }
    }
    init.prototype={
        css(cssAttr,cssVal){
            console.log(1,this)
            for(let i=0;i<this.length;i++){
                this[i].style.cssAttr=cssVal  
                this[i].style[cssAttr]=cssVal 
            }
        },
        ajax(options){},
        attr(options){},
        addclass(options){},
    }
    window.jQuery=window.$=jQuery
})(window)
$.extend({
    bg(){}
})
console.log($('div'));
